package cn.cy.structure.bridge.general;

/**
 * @author yangxq
 * @desc
 * @date 2025-05-12
 */
public class RemoteControl {

    private TV tv;
    private SoundSystem soundSystem;

    public RemoteControl(TV tv, SoundSystem soundSystem) {
        this.tv = tv;
        this.soundSystem = soundSystem;
    }

    public void controlTV() {
        tv.turnOn();
        tv.turnOff();
    }

    public void controlSoundSystem() {
        soundSystem.turnOn();
        soundSystem.turnOff();
    }

}
